package com.zzxu.androiddemo01.view;

import android.graphics.Color;
import android.os.Bundle;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;

import com.zzxu.androiddemo01.R;

public class ViewBoardActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.viewboard_layout);
        TextView tv_code=findViewById(R.id.tv_code);
        ViewGroup.LayoutParams params= tv_code.getLayoutParams();//layoutparamams是一个静态的内部类
        params.width=700;
        params.height=200;
        tv_code.setLayoutParams(params);
    }
}
